<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>{{ page_title }}</title>
	
	<link rel="stylesheet" href="http://localhost/rap9/core/assets/jqueryrte/jquery.rte.css" type="text/css" /> 
        <link href="{{ assets_url }}css/main(1).css" rel="stylesheet" type="text/css"/>
        <link href="{{ assets_url }}css/chrome.css" rel="stylesheet" type="text/css"/>
	
	{% block stylesheet %}{% endblock %}
	
	
  </head>
  <body>
    <div id="header">
      <div class="top">
        <div class="login">
          {% if is_active %}
            <span class="item nickname"></span>Welcome, {{ username }} &nbsp;&nbsp;&nbsp;&nbsp;
            
          {% else %}
            <span class="item"><a href="#">Sign in</a></span>
          {% endif %}
        </div>
        <div class="title"><a href="{{ page_url}}"><h3>Chilik-wiki, sebuah dokumentasi</h3></a></div>
      </div>
	  
      <div class="bottom">
		
        
		{% if is_active %}
		
<div class="buttons">		
			<span class="item">&nbsp;<a href="{{ page_url}}"><img src="{{ assets_url}}images/home.gif"/></a>&nbsp;&nbsp;			<input type="button" value="Buat Halaman" onclick="NewPage()"/></span>{% block buttons %}{% endblock %}
</div>		
		<div class="buttons2">		
			<form action="{{ page_url}}wiki/search/?" method="post">		
			<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
			<img src="{{ assets_url}}images/searchButton.gif" />
			<input name="qsearch" type="text" class="txt" />
			<input name="search-btn" type="submit" class="btn" value="   Search    " />
			</form>
		</div>
		
		<div class="buttons3">				
			
			<img src="{{ assets_url}}images/searchButton.gif"/>
			<input id="q" type="text"/>
			<input id="searchajax" type="submit" value="  Search-Ajax  " onclick="Search()" />
		
			
		</div>
		LoadTime: {{ elapsed*1000}} ms &nbsp;&nbsp;&nbsp;
		{% block chilikpush %}{% endblock %}
		
        <div style="clear: both"></div>
		
      </div>
	  {% endif %}
    </div>
		
		{% if is_active %}
		<div id="catalog">
	
		<a href="{{ page_url}}"> All</a> | 
		<a href="{{ page_url}}wiki/search/A/"> A </a> | 
		<a href="{{ page_url}}wiki/search/B/"> B </a> | 
		<a href="{{ page_url}}wiki/search/C/"> C </a> | 
		<a href="{{ page_url}}wiki/search/D/"> D </a> | 
		<a href="{{ page_url}}wiki/search/E/"> E </a> | 
		
		<a href="{{ page_url}}wiki/search/F/"> F </a> | 
		<a href="{{ page_url}}wiki/search/G/"> G </a> | 
		<a href="{{ page_url}}wiki/search/H/"> H </a> | 
		<a href="{{ page_url}}wiki/search/I/"> I </a> | 
		<a href="{{ page_url}}wiki/search/J/"> J </a> | 
		
		<a href="{{ page_url}}wiki/search/K/"> K </a> | 
		<a href="{{ page_url}}wiki/search/L/"> L </a> | 
		<a href="{{ page_url}}wiki/search/M/"> M </a> | 
		<a href="{{ page_url}}wiki/search/N/"> N </a> | 
		<a href="{{ page_url}}wiki/search/O/"> O </a> | 
		
		<a href="{{ page_url}}wiki/search/P/"> P </a> | 
		<a href="{{ page_url}}wiki/search/Q/"> Q </a> | 
		<a href="{{ page_url}}wiki/search/R/"> R </a> | 
		<a href="{{ page_url}}wiki/search/S/"> S </a> | 
		<a href="{{ page_url}}wiki/search/T/"> T </a> | 
		
		<a href="{{ page_url}}wiki/search/U/"> U </a> | 
		<a href="{{ page_url}}wiki/search/V/"> V </a> | 
		<a href="{{ page_url}}wiki/search/W/"> W </a> | 
		<a href="{{ page_url}}wiki/search/X/"> X </a> |  
		<a href="{{ page_url}}wiki/search/Y/"> Y </a> | 
		<a href="{{ page_url}}wiki/search/Z/"> Z </a> | 
	
	
			</div>
		
		
		<script type="text/javascript">
			function Search(){
				q = $('#q').val();
				$('#body').html('&nbsp;').load('wiki/xsearch/?qsearch=' + q);
			};
			
			$(document).ajaxStart(function(){
				$('#spinner').show();
				$('#spinner').html('<div align="center"><img src="{{ assets_url}}images/spinner.gif"/><br>Sedang mencari...</div>');
			});
			
			$(document).ajaxStop(function(){
				$('#spinner').hide();
			});
			
		</script>
		
		{% endif %}
		
		<div id="spinner"></div>
		<div id="body">
		 	
			{% block body %}{% endblock %}
		</div>
		<div id="footer">
		<p>Dokumentasi Chilik-MVC&copy;2011</p>
		</div>
		<script type="text/javascript" src="{{ assets_url}}javascript/jquery/jquery.min.js"> </script>
		<script type="text/javascript">	
		    function NewPage() 
		    {
			var pageName = window.prompt("Masukkan judul halaman yang baru dari Chilik-wiki Documentation");
			
			if (pageName) 
			{
				location.href = "wiki/add/?page=" + pageName ;
			}
		    };

	    	</script>
		{% block javascript %}
			
	
		{% endblock %}
  </body>
</html>
